package com.example.sunflowers

import android.app.Application
import android.util.Log
import androidx.work.Configuration
import dagger.hilt.android.HiltAndroidApp

/**
 *
 * @Author： LJH
 * @Time： 2024/1/26
 * @description：
 */
@HiltAndroidApp
class App :Application(),Configuration.Provider{
    companion object{
        lateinit var app:App
    }

    override fun onCreate() {
        super.onCreate()
        app = this
    }

    override fun getWorkManagerConfiguration(): Configuration {
        return Configuration.Builder()
            .setMinimumLoggingLevel(if(BuildConfig.DEBUG) Log.DEBUG else Log.ERROR)
            .build()
    }


}